<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p v-text="msg2"></p>
        <p v-html="msg2"></p>
        <h1 v-pre>v-pre:{{msg}}</h1>
        <h1 v-once>v-once:{{msg}}</h1>
        <h1>{{msg}}</h1>
    </div>
</body>

</html>
<script src='https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js'></script>
<script>
    //指令等号后面的引号里面的内容称之为'表达式'
    //text html 就是innerText和innerHTML的区别
    //pre 跳过编译,只显示最原始的插值表达式
    //once 只编译一次,后续的变化不会更新视图
    let vm = new Vue({
        el: "#app",
        data: {
            msg: "守护最好的坤坤",
            msg2: "<i>ikun</i>"
        }
    })
</script>